<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      cURL-7.68.0
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.79.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="blfs" id="blfs-9.1">
    <div class="navheader">
      <h4>
        Beyond Linux<sup>�</sup> From Scratch <span class="phrase">(System
        V</span> Edition) - Version 9.1
      </h4>
      <h3>
        Chapter&nbsp;17.&nbsp;Networking Libraries
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="c-ares.html" title="c-ares-1.15.0">Prev</a>
          <p>
            c-ares-1.15.0
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="geoclue2.html" title=
          "GeoClue-2.5.5">Next</a>
          <p>
            GeoClue-2.5.5
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="netlibs.html" title=
          "Chapter&nbsp;17.&nbsp;Networking Libraries">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="curl" name="curl"></a>cURL-7.68.0
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <h2 class="sect2">
          Introduction to cURL
        </h2>
        <p>
          The <span class="application">cURL</span> package contains an
          utility and a library used for transferring files with URL syntax
          to any of the following protocols: FTP, FTPS, HTTP, HTTPS, SCP,
          SFTP, TFTP, TELNET, DICT, LDAP, LDAPS and FILE. Its ability to both
          download and upload files can be incorporated into other programs
          to support functions like streaming media.
        </p>
        <p>
          This package is known to build and work properly using an LFS-9.1
          platform.
        </p>
        <h3>
          Package Information
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "https://curl.haxx.se/download/curl-7.68.0.tar.xz">https://curl.haxx.se/download/curl-7.68.0.tar.xz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: ce97d54a5f93607714ceb7f46a0a28f3
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 2.3 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated disk space required: 77 MB (add 15 MB for tests)
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated build time: 0.4 SBU (add 16 SBU for tests)
              </p>
            </li>
          </ul>
        </div>
        <h3>
          cURL Dependencies
        </h3>
        <h4>
          Recommended
        </h4>
        <p class="recommended">
          <a class="xref" href="../postlfs/make-ca.html" title=
          "make-ca-1.5">make-ca-1.5</a> (runtime)
        </p>
        <h4>
          Optional
        </h4>
        <p class="optional">
          <a class="xref" href="../general/brotli.html" title=
          "brotli-1.0.7">Brotli-1.0.7</a>, <a class="xref" href="c-ares.html"
          title="c-ares-1.15.0">c-ares-1.15.0</a>, <a class="xref" href=
          "../postlfs/gnutls.html" title="GnuTLS-3.6.12">GnuTLS-3.6.12</a>,
          <a class="xref" href="../general/libidn2.html" title=
          "libidn2-2.3.0">libidn2-2.3.0</a>, <a class="xref" href=
          "libpsl.html" title="libpsl-0.21.0">libpsl-0.21.0</a>, <a class=
          "xref" href="../general/libssh2.html" title=
          "libssh2-1.9.0">libssh2-1.9.0</a>, <a class="xref" href=
          "../postlfs/mitkrb.html" title="MIT Kerberos V5-1.18">MIT Kerberos
          V5-1.18</a>, <a class="xref" href="nghttp2.html" title=
          "nghttp2-1.40.0">nghttp2-1.40.0</a>, <a class="xref" href=
          "../server/openldap.html" title=
          "OpenLDAP-2.4.49">OpenLDAP-2.4.49</a>, <a class="xref" href=
          "samba.html" title="Samba-4.11.6">Samba-4.11.6</a>, <a class=
          "ulink" href="https://launchpad.net/libmetalink/">libmetalink</a>,
          <a class="ulink" href="http://rtmpdump.mplayerhq.hu/">librtmp</a>,
          and <a class="ulink" href=
          "http://spnego.sourceforge.net/">SPNEGO</a>
        </p>
        <h4>
          Optional if Running the Test Suite
        </h4>
        <p class="optional">
          <a class="xref" href="../postlfs/stunnel.html" title=
          "stunnel-5.56">stunnel-5.56</a> (for the HTTPS and FTPS tests) and
          <a class="xref" href="../general/valgrind.html" title=
          "Valgrind-3.15.0">Valgrind-3.15.0</a> (this will slow the tests
          down and may cause failures.)
        </p>
        <p class="usernotes">
          User Notes: <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/curl">http://wiki.linuxfromscratch.org/blfs/wiki/curl</a>
        </p>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          Installation of cURL
        </h2>
        <p>
          Install <span class="application">cURL</span> by running the
          following commands:
        </p>
        <pre class="userinput">
<kbd class="command">./configure --prefix=/usr                           \
            --disable-static                        \
            --enable-threaded-resolver              \
            --with-ca-path=/etc/ssl/certs &amp;&amp;
make</kbd>
</pre>
        <p>
          To run the test suite, issue: <span class="command"><strong>make
          test</strong></span>. Tests 323, 1139, 1140, 1173, and 1560 are
          known to fail. A few other tests may fail randomly for unknown
          reasons.
        </p>
        <p>
          Now, as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">make install &amp;&amp;

rm -rf docs/examples/.deps &amp;&amp;

find docs \( -name Makefile\* -o -name \*.1 -o -name \*.3 \) -exec rm {} \; &amp;&amp;

install -v -d -m755 /usr/share/doc/curl-7.68.0 &amp;&amp;
cp -v -R docs/*     /usr/share/doc/curl-7.68.0</kbd>
</pre>
        <p>
          Simple tests to the new installed <span class=
          "command"><strong>curl</strong></span>: <span class=
          "command"><strong>curl --trace-ascii debugdump.txt
          http://www.example.com/</strong></span> and <span class=
          "command"><strong>curl --trace-ascii d.txt --trace-time
          http://example.com/</strong></span>. Inspect the locally created
          trace files <code class="filename">debugdump.txt</code> and
          <code class="filename">d.txt</code>, which contain version
          downloaded files information, etc. One file has the time for each
          action logged.
        </p>
      </div>
      <div class="commands" lang="en" xml:lang="en">
        <h2 class="sect2">
          Command Explanations
        </h2>
        <p>
          <em class="parameter"><code>--disable-static</code></em>: This
          switch prevents installation of static versions of the libraries.
        </p>
        <p>
          <em class="parameter"><code>--enable-threaded-resolver</code></em>:
          This switch enables <span class="application">cURL</span>'s builtin
          threaded DNS resolver.
        </p>
        <p>
          <em class=
          "parameter"><code>--with-ca-path=/etc/ssl/certs</code></em>: This
          switch sets the location of the BLFS Certificate Authority store.
        </p>
        <p>
          <code class="option">--with-gssapi</code>: This parameter adds
          <span class="application">Kerberos 5</span> support to <code class=
          "filename">libcurl</code>.
        </p>
        <p>
          <code class="option">--without-ssl --with-gnutls</code>: Use to
          build with <span class="application">GnuTLS</span> support instead
          of <span class="application">OpenSSL</span> for SSL/TLS.
        </p>
        <p>
          <code class=
          "option">--with-ca-bundle=/etc/pki/tls/certs/ca-bundle.crt</code>:
          Use this switch instead of <em class=
          "parameter"><code>--with-ca-path</code></em> if building with
          <span class="application">GnuTLS</span> support instead of
          <span class="application">OpenSSL</span> for SSL/TLS.
        </p>
        <p>
          <code class="option">--with-libssh2</code>: This paramater adds
          <span class="application">SSH</span> support to cURL. This is
          disabled by default.
        </p>
        <p>
          <code class="option">--enable-ares</code>: This paramater adds
          support for DNS resolution through the c-ares library. It is
          disabled by default, but does speed up DNS resolution queries.
        </p>
        <p>
          <span class="command"><strong>find docs ... -exec rm {}
          \;</strong></span>: This command removes <code class=
          "filename">Makefiles</code> and man files from the documentation
          directory that would otherwise be installed by the commands that
          follow.
        </p>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          Contents
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed Programs:</strong>
              <span class="segbody">curl and curl-config</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Library:</strong>
              <span class="segbody">libcurl.so</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Directories:</strong>
              <span class="segbody">/usr/include/curl and
              /usr/share/doc/curl-7.68.0</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="curl-prog" name="curl-prog"></a><span class=
                    "term"><span class=
                    "command"><strong>curl</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is a command line tool for transferring files with URL
                    syntax.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="curl-config" name="curl-config"></a><span class=
                    "term"><span class=
                    "command"><strong>curl-config</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    prints information about the last compile, like libraries
                    linked to and prefix setting.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="libcurl" name="libcurl"></a><span class=
                    "term"><code class="filename">libcurl.so</code></span>
                  </p>
                </td>
                <td>
                  <p>
                    provides the API functions required by <span class=
                    "command"><strong>curl</strong></span> and other
                    programs.
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <p class="updated">
        Last updated on 2020-02-15 08:54:30 -0800
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="c-ares.html" title="c-ares-1.15.0">Prev</a>
          <p>
            c-ares-1.15.0
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="geoclue2.html" title=
          "GeoClue-2.5.5">Next</a>
          <p>
            GeoClue-2.5.5
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="netlibs.html" title=
          "Chapter&nbsp;17.&nbsp;Networking Libraries">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
